class WelcomeController < ApplicationController
  def index
    @recent_articles = Article.recent 5
    @most_popular_articles = Article.most_popular 5

    respond_to do |format|
      format.html
      format.js do
        render :update do |page|
          page.replace_html "main_body", render("index")
        end
      end
    end
  end

  def about
  end
end
